/**
 * 后台纸条相关接口
 */

// 引入Router
const Router = require("express");
const router = new Router();

// 引入业务逻辑
const scripDis = require("../../../business/admin/scripDis");

// 纸条列表
router.post("/all", (req, res) => {
  scripDis.allScrip(req, res);
})

// 删除纸条
router.post("/del", (req,res) => {
  scripDis.delScrip(req, res);
})

// 审核纸条
router.post("/audit", (req, res) => {
  scripDis.auditScrip(req, res);
})

// 审核或未审核纸条列表
router.post("/audit_type", (req, res) => {
    scripDis.auditScripType(req, res);
})

module.exports = () => {
  return router;
}